﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using WMS.BasicData.Clients;
using WMS.BasicData.Vendors.DTO;
using WMS.Web.Controllers.BasicData.Vendors;

namespace WMS.BasicData.Vendors
{
    /// <summary>
    /// 供应商接口
    /// </summary>
    public interface IVendorAppService:IApplicationService
    {
        /// <summary>
        /// 获取供应商（分页）
        /// </summary>
        /// <param name="page">页码</param>
        /// <param name="limit">页容量</param>
        /// <param name="chineseName">中文名字</param>
        /// <returns>返回对应数据</returns>
        Task<PagedResult> GetVendor(int page,int limit,string? chineseName);

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="vendor">供应商信息</param>
        /// <returns>返回受影响行数</returns>
        Task<int> AddVendor(Vendor vendor);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id">主键Id</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DeleteVendor(int Id);

        /// <summary>
        /// 获取对应数据
        /// </summary>
        /// <param name="Id">主键Id</param>
        /// <returns>返回受影响行数</returns>
        Task<Vendor> BackfillData(int Id);

        /// <summary>
        /// 修改
        /// </summary>
        /// <returns></returns>
        Task<int> UpdateVendor(UpdateVendorDto vendor);

        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="array">数组</param>
        /// <returns>返回受影响行数</returns>
        Task<int> BulkDeletion(string array);


      




    }
}
